{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nvar Element = function Element(props) {\n  var _classNames, _classNames2;\n  var prefixCls = props.prefixCls,\n    className = props.className,\n    style = props.style,\n    size = props.size,\n    shape = props.shape;\n  var sizeCls = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-lg\"), size === 'large'), _defineProperty(_classNames, \"\".concat(prefixCls, \"-sm\"), size === 'small'), _classNames));\n  var shapeCls = classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-circle\"), shape === 'circle'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-square\"), shape === 'square'), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-round\"), shape === 'round'), _classNames2));\n  var sizeStyle = React.useMemo(function () {\n    return typeof size === 'number' ? {\n      width: size,\n      height: size,\n      lineHeight: \"\".concat(size, \"px\")\n    } : {};\n  }, [size]);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(prefixCls, sizeCls, shapeCls, className),\n    style: Object.assign(Object.assign({}, sizeStyle), style)\n  });\n};\nexport default Element;","map":{"version":3,"names":["classNames","React","Element","props","prefixCls","className","style","size","shape","sizeCls","shapeCls","sizeStyle","useMemo","width","height","lineHeight","createElement","Object","assign"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/skeleton/Element.js"],"sourcesContent":["import classNames from 'classnames';\nimport * as React from 'react';\nconst Element = props => {\n  const {\n    prefixCls,\n    className,\n    style,\n    size,\n    shape\n  } = props;\n  const sizeCls = classNames({\n    [`${prefixCls}-lg`]: size === 'large',\n    [`${prefixCls}-sm`]: size === 'small'\n  });\n  const shapeCls = classNames({\n    [`${prefixCls}-circle`]: shape === 'circle',\n    [`${prefixCls}-square`]: shape === 'square',\n    [`${prefixCls}-round`]: shape === 'round'\n  });\n  const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n    width: size,\n    height: size,\n    lineHeight: `${size}px`\n  } : {}, [size]);\n  return /*#__PURE__*/React.createElement(\"span\", {\n    className: classNames(prefixCls, sizeCls, shapeCls, className),\n    style: Object.assign(Object.assign({}, sizeStyle), style)\n  });\n};\nexport default Element;"],"mappings":";AAAA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,IAAMC,OAAO,GAAG,SAAVA,OAAO,CAAGC,KAAK,EAAI;EAAA;EACvB,IACEC,SAAS,GAKPD,KAAK,CALPC,SAAS;IACTC,SAAS,GAIPF,KAAK,CAJPE,SAAS;IACTC,KAAK,GAGHH,KAAK,CAHPG,KAAK;IACLC,IAAI,GAEFJ,KAAK,CAFPI,IAAI;IACJC,KAAK,GACHL,KAAK,CADPK,KAAK;EAEP,IAAMC,OAAO,GAAGT,UAAU,2DACpBI,SAAS,UAAQG,IAAI,KAAK,OAAO,0CACjCH,SAAS,UAAQG,IAAI,KAAK,OAAO,gBACrC;EACF,IAAMG,QAAQ,GAAGV,UAAU,6DACrBI,SAAS,cAAYI,KAAK,KAAK,QAAQ,2CACvCJ,SAAS,cAAYI,KAAK,KAAK,QAAQ,2CACvCJ,SAAS,aAAWI,KAAK,KAAK,OAAO,iBACzC;EACF,IAAMG,SAAS,GAAGV,KAAK,CAACW,OAAO,CAAC;IAAA,OAAM,OAAOL,IAAI,KAAK,QAAQ,GAAG;MAC/DM,KAAK,EAAEN,IAAI;MACXO,MAAM,EAAEP,IAAI;MACZQ,UAAU,YAAKR,IAAI;IACrB,CAAC,GAAG,CAAC,CAAC;EAAA,GAAE,CAACA,IAAI,CAAC,CAAC;EACf,OAAO,aAAaN,KAAK,CAACe,aAAa,CAAC,MAAM,EAAE;IAC9CX,SAAS,EAAEL,UAAU,CAACI,SAAS,EAAEK,OAAO,EAAEC,QAAQ,EAAEL,SAAS,CAAC;IAC9DC,KAAK,EAAEW,MAAM,CAACC,MAAM,CAACD,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,SAAS,CAAC,EAAEL,KAAK;EAC1D,CAAC,CAAC;AACJ,CAAC;AACD,eAAeJ,OAAO"},"metadata":{},"sourceType":"module"}